package com.platform.service;

import com.github.pagehelper.PageInfo;
import com.platform.common.ServerResponse;
import com.platform.pojo.Menu;

import java.util.List;
import java.util.Map;

public interface IMenuService {
    ServerResponse<String> insert(Menu menu);

    ServerResponse<String> del(Integer id);

    ServerResponse<String> update(Menu menu);

    ServerResponse<List<Map>> selectByUserName(String userName, Integer parentId);

    ServerResponse<List<Map>> selectAllMenu(String userName,Integer parentId);

    ServerResponse<PageInfo> selectByParam(Map param);

    ServerResponse<List<Map>> selectAllFirstMenu();

}
